package com.ruoyi.qif.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 锜风公寓-维修对象 qif_repair
 *
 * @author David
 * @date 2025-11-04
 */
public class QifRepair extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 维修id */
    private Long repairId;

    /** 单元号 */
    @Excel(name = "单元号")
    private String unit;

    /** 房间号 */
    @Excel(name = "房间号")
    private String roomNum;

    /** 时间 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date repairDate;

    /** 状态(0:待办,1:完成) */
    @Excel(name = "状态")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;
    // 用于接收前端查询的年月（非数据库字段）
    private Integer queryYear;
    private Integer queryMonth;
    public Integer getQueryYear() {
        return queryYear;
    }
    public void setQueryYear(Integer queryYear) {
        this.queryYear = queryYear;
    }
    public Integer getQueryMonth() {
        return queryMonth;
    }
    public void setQueryMonth(Integer queryMonth) {
        this.queryMonth = queryMonth;
    }
    public void setRepairId(Long repairId)
    {
        this.repairId = repairId;
    }

    public Long getRepairId()
    {
        return repairId;
    }

    public void setUnit(String unit)
    {
        this.unit = unit;
    }

    public String getUnit()
    {
        return unit;
    }

    public void setRoomNum(String roomNum)
    {
        this.roomNum = roomNum;
    }

    public String getRoomNum()
    {
        return roomNum;
    }

    public void setRepairDate(Date repairDate)
    {
        this.repairDate = repairDate;
    }

    public Date getRepairDate()
    {
        return repairDate;
    }

    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }

    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("repairId", getRepairId())
                .append("unit", getUnit())
                .append("roomNum", getRoomNum())
                .append("repairDate", getRepairDate())
                .append("status", getStatus())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
